<?php
const PATH = "./";
if(!is_dir("src")){
    define("PHAR_PATH","phar://core.phar/");
}else{
    define("PHAR_PATH",PATH."src/");
}
const GLOBAL_LOG_PATH = PATH . "log/";
const GLOBAL_DATA_PATH = PATH . "data/";
const CORE_PATH = PHAR_PATH . "core/";
const STATIC_PATH = PHAR_PATH . "static/";
const CONFIG_PATH = PATH . "config/";
const COMMON_STATIC_PATH = STATIC_PATH."common/";
const COMMON_HTML_PATH = COMMON_STATIC_PATH."html/";

const RETURN_FORMAT_STRING = 1;
const RETURN_FORMAT_JSON = 2;
const RETURN_FORMAT_array = 3;

const USLEEP_TIME = 0;

const ERROR_HTML =
<<<ERROR
<body><div style="font-family: arial;text-align:center;position:absolute;top:0;left:0;right:0;bottom:0;user-select: none"><div style="width:50%;display: inline-block;vertical-align: middle;border-bottom: 7px solid #176391; position: relative;text-align: left;padding-bottom: 100px;user-select: none"><div style="font-size: 36px;color:#777; font-weight: 300;border-bottom: 1px solid #ddd; padding-bottom: 5px;margin-bottom: 5px;user-select: none;-ms-user-select: none;" id="title">{ERROR_TITLE}</div><div style="font-size: 18px;color:#aaa;font-weight: 400;user-select: none;-ms-user-select: none" id="sub_title">{ERROR_CONTENT}</div><div style="position:absolute;bottom: -20px;right:0;left:33%;height:7px;background-color: #56b9e8;user-select: none;-ms-user-select: none;"></div></div><div style="height:100%;display: inline-block;vertical-align: middle;user-select: none;-ms-user-select: none;"></div></div></body>
ERROR;